x, y = map(int, input().split())
Male = 87 * x
Female = 85 * y
Students = x + y
avg = (Male + Female) / Students
print(f"{avg:.4f}")